.customRadioGroup {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.customRadioItem {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    user-select: none;
    position: relative;

    &:hover:not(.disabled) {
        background-color: rgba(0, 0, 0, 0.04);
    }

    &.checked {
        background-color: rgba(22, 119, 255, 0.06);
    }

    &.disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }
}

.radioInput {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.radioIndicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    min-width: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    margin-right: 8px;
    transition: all 0.2s ease;
    position: relative;

    .customRadioItem.checked & {
        border-color: #1677ff;
        background-color: #1677ff;
    }

    .customRadioItem.disabled & {
        border-color: #d9d9d9;
        background-color: #f5f5f5;
    }

    .customRadioItem.checked.disabled & {
        border-color: #d9d9d9;
        background-color: #f5f5f5;
    }
}

.radioDot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: transparent;
    transition: all 0.2s ease;
    transform: scale(0);

    .customRadioItem.checked & {
        background-color: #fff;
        transform: scale(1);
    }

    .customRadioItem.checked.disabled & {
        background-color: #bfbfbf;
    }
}

.radioContent {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

// 横向布局支持
.customRadioGroup.horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

// 卡片样式支持
.customRadioItem.card {
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    min-width: 100px;

    .radioIndicator {
        margin-right: 0;
        margin-bottom: 8px;
    }

    &.checked {
        border-color: #1677ff;
        background-color: rgba(22, 119, 255, 0.06);
    }

    .radioContent {
        flex-direction: column;
        text-align: center;
    }
}

